<template>
	<view class="page"><rich-text :nodes="detail.explainContent"></rich-text></view>
</template>

<script>
import { getType } from '@/service/home.js';
export default {
	data() {
		return { detail: {} };
	},
	async onLoad({ type, title }) {
		if (title) {
			uni.setNavigationBarTitle({
				title: title
			});
		}
		this.detail = await getType({ explainType: type });
	},
	methods: {}
};
</script>

<style scoped>
.page {
	padding: 30upx;
}
</style>
